package com.haipumi.biz.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.haipumi.biz.IBackCustBiz;
import com.haipumi.biz.TRewardBiz;
import com.haipumi.mapper.TRewardMapper;


@Service("tRewardBiz")
public class TRewardBizImpl implements TRewardBiz{

	@Autowired
	private TRewardMapper tRewardMapper;
	
	@Autowired
	private IBackCustBiz backCustBiz;
	
	
	public int payReward(String uid,String reward) {
		Map<String,Object> map=new HashMap<String,Object>();
		map.put("uid", Integer.parseInt(uid));
		map.put("reward", Integer.parseInt(reward));
		return tRewardMapper.payReward(map);
	}

}
